package com.vivo.file.entity;

import java.util.ArrayList;
import java.util.List;

public class DictionariesArticleExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DictionariesArticleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("Id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("Id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("Id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("Id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("Id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("Id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("Id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("Id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("Id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("Id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("Id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("Id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("Id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("Id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andArticleIsNull() {
            addCriterion("Article is null");
            return (Criteria) this;
        }

        public Criteria andArticleIsNotNull() {
            addCriterion("Article is not null");
            return (Criteria) this;
        }

        public Criteria andArticleEqualTo(String value) {
            addCriterion("Article =", value, "article");
            return (Criteria) this;
        }

        public Criteria andArticleNotEqualTo(String value) {
            addCriterion("Article <>", value, "article");
            return (Criteria) this;
        }

        public Criteria andArticleGreaterThan(String value) {
            addCriterion("Article >", value, "article");
            return (Criteria) this;
        }

        public Criteria andArticleGreaterThanOrEqualTo(String value) {
            addCriterion("Article >=", value, "article");
            return (Criteria) this;
        }

        public Criteria andArticleLessThan(String value) {
            addCriterion("Article <", value, "article");
            return (Criteria) this;
        }

        public Criteria andArticleLessThanOrEqualTo(String value) {
            addCriterion("Article <=", value, "article");
            return (Criteria) this;
        }

        public Criteria andArticleLike(String value) {
            addCriterion("Article like", value, "article");
            return (Criteria) this;
        }

        public Criteria andArticleNotLike(String value) {
            addCriterion("Article not like", value, "article");
            return (Criteria) this;
        }

        public Criteria andArticleIn(List<String> values) {
            addCriterion("Article in", values, "article");
            return (Criteria) this;
        }

        public Criteria andArticleNotIn(List<String> values) {
            addCriterion("Article not in", values, "article");
            return (Criteria) this;
        }

        public Criteria andArticleBetween(String value1, String value2) {
            addCriterion("Article between", value1, value2, "article");
            return (Criteria) this;
        }

        public Criteria andArticleNotBetween(String value1, String value2) {
            addCriterion("Article not between", value1, value2, "article");
            return (Criteria) this;
        }

        public Criteria andFkClassifyIsNull() {
            addCriterion("FK_Classify is null");
            return (Criteria) this;
        }

        public Criteria andFkClassifyIsNotNull() {
            addCriterion("FK_Classify is not null");
            return (Criteria) this;
        }

        public Criteria andFkClassifyEqualTo(String value) {
            addCriterion("FK_Classify =", value, "fkClassify");
            return (Criteria) this;
        }

        public Criteria andFkClassifyNotEqualTo(String value) {
            addCriterion("FK_Classify <>", value, "fkClassify");
            return (Criteria) this;
        }

        public Criteria andFkClassifyGreaterThan(String value) {
            addCriterion("FK_Classify >", value, "fkClassify");
            return (Criteria) this;
        }

        public Criteria andFkClassifyGreaterThanOrEqualTo(String value) {
            addCriterion("FK_Classify >=", value, "fkClassify");
            return (Criteria) this;
        }

        public Criteria andFkClassifyLessThan(String value) {
            addCriterion("FK_Classify <", value, "fkClassify");
            return (Criteria) this;
        }

        public Criteria andFkClassifyLessThanOrEqualTo(String value) {
            addCriterion("FK_Classify <=", value, "fkClassify");
            return (Criteria) this;
        }

        public Criteria andFkClassifyLike(String value) {
            addCriterion("FK_Classify like", value, "fkClassify");
            return (Criteria) this;
        }

        public Criteria andFkClassifyNotLike(String value) {
            addCriterion("FK_Classify not like", value, "fkClassify");
            return (Criteria) this;
        }

        public Criteria andFkClassifyIn(List<String> values) {
            addCriterion("FK_Classify in", values, "fkClassify");
            return (Criteria) this;
        }

        public Criteria andFkClassifyNotIn(List<String> values) {
            addCriterion("FK_Classify not in", values, "fkClassify");
            return (Criteria) this;
        }

        public Criteria andFkClassifyBetween(String value1, String value2) {
            addCriterion("FK_Classify between", value1, value2, "fkClassify");
            return (Criteria) this;
        }

        public Criteria andFkClassifyNotBetween(String value1, String value2) {
            addCriterion("FK_Classify not between", value1, value2, "fkClassify");
            return (Criteria) this;
        }

        public Criteria andFkDirectionIsNull() {
            addCriterion("FK_Direction is null");
            return (Criteria) this;
        }

        public Criteria andFkDirectionIsNotNull() {
            addCriterion("FK_Direction is not null");
            return (Criteria) this;
        }

        public Criteria andFkDirectionEqualTo(String value) {
            addCriterion("FK_Direction =", value, "fkDirection");
            return (Criteria) this;
        }

        public Criteria andFkDirectionNotEqualTo(String value) {
            addCriterion("FK_Direction <>", value, "fkDirection");
            return (Criteria) this;
        }

        public Criteria andFkDirectionGreaterThan(String value) {
            addCriterion("FK_Direction >", value, "fkDirection");
            return (Criteria) this;
        }

        public Criteria andFkDirectionGreaterThanOrEqualTo(String value) {
            addCriterion("FK_Direction >=", value, "fkDirection");
            return (Criteria) this;
        }

        public Criteria andFkDirectionLessThan(String value) {
            addCriterion("FK_Direction <", value, "fkDirection");
            return (Criteria) this;
        }

        public Criteria andFkDirectionLessThanOrEqualTo(String value) {
            addCriterion("FK_Direction <=", value, "fkDirection");
            return (Criteria) this;
        }

        public Criteria andFkDirectionLike(String value) {
            addCriterion("FK_Direction like", value, "fkDirection");
            return (Criteria) this;
        }

        public Criteria andFkDirectionNotLike(String value) {
            addCriterion("FK_Direction not like", value, "fkDirection");
            return (Criteria) this;
        }

        public Criteria andFkDirectionIn(List<String> values) {
            addCriterion("FK_Direction in", values, "fkDirection");
            return (Criteria) this;
        }

        public Criteria andFkDirectionNotIn(List<String> values) {
            addCriterion("FK_Direction not in", values, "fkDirection");
            return (Criteria) this;
        }

        public Criteria andFkDirectionBetween(String value1, String value2) {
            addCriterion("FK_Direction between", value1, value2, "fkDirection");
            return (Criteria) this;
        }

        public Criteria andFkDirectionNotBetween(String value1, String value2) {
            addCriterion("FK_Direction not between", value1, value2, "fkDirection");
            return (Criteria) this;
        }

        public Criteria andSortNumIsNull() {
            addCriterion("Sort_Num is null");
            return (Criteria) this;
        }

        public Criteria andSortNumIsNotNull() {
            addCriterion("Sort_Num is not null");
            return (Criteria) this;
        }

        public Criteria andSortNumEqualTo(Integer value) {
            addCriterion("Sort_Num =", value, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumNotEqualTo(Integer value) {
            addCriterion("Sort_Num <>", value, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumGreaterThan(Integer value) {
            addCriterion("Sort_Num >", value, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("Sort_Num >=", value, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumLessThan(Integer value) {
            addCriterion("Sort_Num <", value, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumLessThanOrEqualTo(Integer value) {
            addCriterion("Sort_Num <=", value, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumIn(List<Integer> values) {
            addCriterion("Sort_Num in", values, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumNotIn(List<Integer> values) {
            addCriterion("Sort_Num not in", values, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumBetween(Integer value1, Integer value2) {
            addCriterion("Sort_Num between", value1, value2, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumNotBetween(Integer value1, Integer value2) {
            addCriterion("Sort_Num not between", value1, value2, "sortNum");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}